import * as Nexus from "@nexus/schema";
import _ from "lodash";
import { payloadName, fieldDescription } from "./config";

// 定义负载类型
export default Nexus.objectType({
  // 名称
  name: payloadName,

  // 描述
  description: `${fieldDescription}负载`,

  // 定义
  definition(t) {
    // 实施节点
    t.implements("BaseReturn");
    t.string("token", { description: "授权信息" });
    t.field("me", {
      type: "Admin",
    });
  },
});
